<script>
	import routingIntercept from '@/utils/permission.js'
	export default {
		onLaunch: function(option) {
			routingIntercept();
			console.log(option.path);
			/*#ifdef MP-WEIXIN*/
			// if (this.$store.state.token == "" || this.$store.state.token == null) {
			// 	setTimeout(() => {
			// 		uni.reLaunch({
			// 			url: "/pages/login/login"
			// 		})
			// 	}, 1000)
			// }
			/*#endif*/
			/*#ifdef APP-PLUS || H5*/
			{
				if (this.$store.state.token == "" || this.$store.state.token == null) {
					uni.redirectTo({
						url: "/pages/login/login"
					})
				}
			}
			/*#endif*/
		},
		onShow: function() {},
		onHide: function() {}
	}
</script>

<style>
	body {
		background-color: #EAECEF;
		font-size: 28rpx;
	}

	/**隐藏滚动条**/
	scroll-view ::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
		color: transparent;
	}

</style>